function removeDuplicates(nums) {
  let result = [...new Set(nums)]
  return result.length + ', nums = [' + result +']'
}

console.log(removeDuplicates([0,0,1,1,1,2,2,3,3,4]))
